<?php defined('LFNC_VERSION') or die('forbidden');


/**
* MLT Web Engine
* http://www.molotsoft.ru
*
* @package MLT_WE
* @subpackage Lucky_Funcs
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: email_match.lfnc.php 234 2009-04-09 10:40:32Z molotsoft@gmail.com $
* @link $HeadURL: http://lucky-funcs.googlecode.com/svn/trunk/funcs/regexp/email_match.lfnc.php $
*/


define('EMAIL_PATTERN', '~^([a-z0-9_\-\+\.]+)@((?:[a-z0-9\-]+\.)+[a-z]{2,9})$~i');

function email_match($email) {
	return (bool)preg_match(EMAIL_PATTERN, $email);
}


?>